package de.slowpoke.flattr.Enum
{
	/**
	 * General class for storing an enumuration value.
	 * Extend this class for specualising and enclapsulate several values.
	 */
	public class EnumValue
	{
		
		protected var _value:String;
		
		public function EnumValue(value:String){
			this.value = value;
		}
		
		protected function set value(value:String):void
		{
			if(this._value == null) this._value = value;
		}
		
		protected function get value():String
		{
			return this._value;
		}
		
		public function valueOf():String
		{
			return this.value;
		}
		
		public function toString():String
		{
			return this.value;
		}
		
	}
}